package com.campus.wall.presenter;

import android.app.Activity;

import com.campus.wall.base.BasePresenter;
import com.campus.wall.contract.LeaveMessageContract;
import com.campus.wall.contract.PlaceContract;
import com.campus.wall.response.MessageResponse;

import java.util.ArrayList;
import java.util.List;

public class PlacePresenter extends BasePresenter<PlaceContract.View> implements PlaceContract.Presenter{

    private Activity activity;
    private List<MessageResponse> list=new ArrayList<>();
    public PlacePresenter(Activity activity) {
        this.activity=activity;
    }





    public List<MessageResponse> initeMess(){
        for (int i=0;i<10;i++){
            MessageResponse messageResponse=new MessageResponse();
            messageResponse.setMessage("静以修生，俭以养德，非淡泊无以明志，非宁静无以致远");
            messageResponse.setName("任弼时");
            messageResponse.setImage(":mipmap/boy");
            list.add(messageResponse);
        }
        return list;
    }

    @Override
    public void addPlace(String messge) {

    }
}
